/*
 * test_random.cpp
 *
 *  Created on: Apr 23, 2014
 *      Author: killerg
 */



#include "share/util.h"

static const int RAND_NUM = 10000000;

bool test_random() {
	srand(time(NULL));
	int range[100] = {0};

	for (int i=0; i<RAND_NUM; ++i) {
		++range[(rand() % 10000) / 100];
	}

	for (int i=0; i<100; ++i) {
		printf("%d\n", range[i]);
	}

	return true;
}
